home *** CD-ROM | disk | FTP | other *** search
/ Ghost Rider iactivecard / Ghost Rider iactivecard.iso / pc / quiz.swf / scripts / DefineSprite_56 / frame_452 / DoAction.as
Encoding:
Text File  |  2007-04-17  |  524 b   |  29 lines

  1. _root.timer_sec--;
  2. if(_root.timer_sec == 1)
  3. {
  4.    _root.timer_txt = _root.timer_sec + " second";
  5. }
  6. else if(_root.timer_sec == 0)
  7. {
  8.    _root.correct = "OUT OF TIME";
  9.    _root.timer_txt = "0 seconds";
  10.    _parent.show_answer();
  11.    stop();
  12. }
  13. else
  14. {
  15.    _root.timer_txt = _root.timer_sec + " seconds";
  16. }
  17. gotoAndPlay(1);
  18. if(_root.totalAnswer == _root.toDisplay)
  19. {
  20.    _root.aspetta.itsEnd = true;
  21.    _root.aspetta.play();
  22. }
  23. else
  24. {
  25.    _root.aspetta.play();
  26. }
  27. delete _root.myChoice;
  28. _root.qbar.nextFrame();
  29.